﻿using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CastleDynamicProxyTest
{
    public class WorkAsyncInterceptorWarpper : IInterceptor
    {
        private WorkAsyncInterceptor _interceptor;

        public WorkAsyncInterceptorWarpper(WorkAsyncInterceptor interceptor)
        {
            this._interceptor = interceptor;
        }

        public void Intercept(IInvocation invocation)
        {
            this._interceptor.ToInterceptor().Intercept(invocation);
        }
    }
}
